package com.shop.cereshop.app.page.productDetail;

import com.shop.cereshop.app.annotation.KeepLongAsNumber;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @description: 完整sku VO
 * @author zdd
 * @date 2025/11/7 17:27
 * @version 1.0
 */
@Data
@ApiModel("完整sku VO")
public class FullSkuVO {

    @ApiModelProperty(value = "SKU ID", example = "1001")
    @KeepLongAsNumber
    private Long skuId;

    @ApiModelProperty(value = "价格", example = "99.99")
    private BigDecimal price;

    @ApiModelProperty(value = "库存数量")
    @KeepLongAsNumber
    private Long stockNumber;

    @ApiModelProperty(value = "SKU 主图 URL")
    private String image;

    @ApiModelProperty(value = "规格键值对，如 {\"颜色\":\"红色\", \"尺寸\":\"L\"}")
    private Map<String, String> specs;

}
